﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShoppingEntity.ResultModel
{
    public class GetInitMenuResultModel
    {
		public object homeInfo { get; set; } = new
		{
			title = "首页",
			href = ""
		};
		public object logoInfo { get; set; } = new
		{
			title = "LAYUI MINI",
			image = "../../layuimini/images/logo.png",
			href = ""
		};
		public List<MenuInfoResultModel> menuInfo { get; set; } = new List<MenuInfoResultModel>()
				{
					new MenuInfoResultModel
					{
						title= "常规管理",
					icon= "fa fa-address-book",
					href= "",
					target= "_self"
					}
			   };
		public void SetMenuData(List<MenuInfoResultModel> chiid)
		{
			var menu = menuInfo.FirstOrDefault();
			if (menu != null)
			{
				menu.child = chiid;
			}
		}


	}
}
